var myModule = angular.module("mymodule",[]);
myModule.directive("hello",function(){
    return {
        restrict:"E",
        template:"<div>hello Angular</div>",
        replace:true
    }
});
function GreetCtrl($scope,$rootScope){
    $scope.name = "gengchenlong";
    $rootScope.department = "World";
}
function ListCtrl($scope){
    $scope.names = [
        "gengchenlong","love","wangxin"
    ];
}